// Decompiled by GOOSIN CO,LTD Copyright 2010 Pavel Kouznetsov.
// home page: http://www.Goosin.net
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   ValidataFinanceTag.java

package validata;

import include.nseer_db.nseer_db;
import java.sql.ResultSet;

public class ValidataFinanceTag
{

	public String tag;
	private nseer_db dba;

	public ValidataFinanceTag()
	{
	}

	public String validata(String dbase, String table, String field1, String fieldValue1, String field2, String fieldValue2, String field3)
	{
		try
		{
			dba = new nseer_db(dbase);
			ResultSet rs = dba.executeQuery((new StringBuilder("select * from ")).append(table).append(" where ").append(field1).append("='").append(fieldValue1).append("' and ").append(field2).append("='").append(fieldValue2).append("' ").toString());
			if (rs.next())
				tag = rs.getString(field3);
			dba.close();
		}
		catch (Exception ex)
		{
			ex.printStackTrace();
		}
		return tag;
	}
}
